
package com.insigma.business.qrcode.soldier.service.impl;



import com.insigma.business.qrcode.common.service.SequenceGenerator;
import com.insigma.business.qrcode.soldier.dao.JobFairParticipateDao;
import com.insigma.business.qrcode.job.dto.search.JobFairParticipateBSearcher;
import com.insigma.business.qrcode.soldier.entity.JobFairParticipateDO;
import com.insigma.business.qrcode.soldier.service.JobFairParticipateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("jobFairParticipateService")
public class JobFairParticipateServiceImpl implements JobFairParticipateService {

    @Autowired(required = false)
    private JobFairParticipateDao jobFairParticipateDao;
    @Autowired(required = false)
    private SequenceGenerator sequenceGenerator;

    
    @Override
    public List<JobFairParticipateDO> search(final JobFairParticipateBSearcher jobFairParticipateBSearcher) {
        return jobFairParticipateDao.search(jobFairParticipateBSearcher);
    }
   
    @Override
    public JobFairParticipateDO get(final String id){
        return jobFairParticipateDao.get(id);
    }

    
    @Override
    public Integer insert(final JobFairParticipateDO jobFairParticipateDO){
        jobFairParticipateDO.setId(sequenceGenerator.genKey("JOB_FAIR_PARTICIPATE_ID"));
        return jobFairParticipateDao.insert(jobFairParticipateDO);
    }

    
    @Override
    public Integer update(final JobFairParticipateDO jobFairParticipateDO){
        return jobFairParticipateDao.update(jobFairParticipateDO);
    }

    
    @Override
    public Integer delete(final String id, final String modifierType, final String modifierId){
        return jobFairParticipateDao.delete(id,modifierType,modifierId);
    }

    @Override
    public JobFairParticipateDO getParticipateByFairIdAndOrgId(String fairId, String companyId, String orgType) {
        return jobFairParticipateDao.getParticipateByFairIdAndOrgId(fairId, companyId, orgType);
    }

    @Override
    public int countByFairAndStatus(String fairId, String status) {
        return jobFairParticipateDao.countByFairAndStatus(fairId, status);
    }

    @Override
    public JobFairParticipateDO getByOrgId(String orgId) {
        return jobFairParticipateDao.getByOrgId(orgId);
    }
}
